From 3d679818a0929b0ec7a8013d9be3cc0163fe557e Mon Sep 17 00:00:00 2001 From: Mark Crichton Date: Thu, 29 Jul 1999 21:17:40 +0000 Subject: [PATCH] Added some first steps for file saving. Big thing is that a Added some first steps for file saving. Big thing is that a gdk_pixbuf_save function needs to be setup. Mark --- gdk-pixbuf/ChangeLog | 8 ++++++++ gdk-pixbuf/gdk-pixbuf-io.c | 8 +------- gdk-pixbuf/io-png.c | 4 ++++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 8bc05a8085..be55f15a74 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,11 @@ +1999-07-29 Mark Crichton + + * src/io-png.c (image_save): Added PNG saving function + + * src/gdk-pixbuf-io.c: Changed image_save function format. Now it's + image_save(GdkPixBuf *p, FILE *f, ...) + + 1999-07-26 Michael Zucchi * src/Makefile.am (*_LIB): Only build the relevant loaders which diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index cdb0007fbb..94e6e6b6a6 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -121,7 +121,7 @@ static struct { gboolean (*format_check)(unsigned char *buffer, int size); GModule *module; GdkPixBuf *(*load)(FILE *f); - int (*save)(char *filename, ...); + int (*save)(GdkPixBuf, *p, FILE *f, ...); } file_formats [] = { { "png", pixbuf_check_png, NULL, NULL, NULL }, { "jpeg", pixbuf_check_jpeg, NULL, NULL, NULL }, @@ -209,9 +209,3 @@ gdk_pixbuf_load_image (const char *file) g_warning ("Unable to find handler for file: %s", file); return NULL; } - -/* - * Local variables: - * c-basic-offset: 8 - * End: - */ diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c index 71cce17c66..ec14380951 100644 --- a/gdk-pixbuf/io-png.c +++ b/gdk-pixbuf/io-png.c @@ -163,3 +163,7 @@ GdkPixBuf *image_load(FILE * f) return pixbuf; } + +int image_save(GdkPixBuf *pixbuf, FILE *file) +{ + png_structp, -- 2.30.2